package pers.archives.common.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

/* 安全模块bean配置
 *@program:archives-parent
 *@author: 赵浩浩
 *@Time: 2020/9/12  20:25
 */
@Component
public class SecurityBean {

    @Bean
    public PasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }

}
